package com.alander.nexusgo.user.model.constants;

import lombok.Getter;

@Getter
public enum UserTagsEnum {

    USER_TAG_1_1(tag(0), "用户标签1", "tag_info_01"),
    USER_TAG_1_2(tag(1), "用户标签2", "tag_info_01"),
    USER_TAG_1_3(tag(2), "用户标签3", "tag_info_01"),
    USER_TAG_2_1(tag(0), "用户标签4", "tag_info_02"),
    USER_TAG_2_2(tag(1), "用户标签5", "tag_info_02"),
    USER_TAG_2_3(tag(2), "用户标签6", "tag_info_02"),
    USER_TAG_3_1(tag(0), "用户标签7", "tag_info_03"),
    USER_TAG_3_2(tag(1), "用户标签8", "tag_info_03"),
    USER_TAG_3_3(tag(2), "用户标签9", "tag_info_03");

    final Long tag;
    final String desc;
    final String fieldName;

    UserTagsEnum(long tag, String desc, String fieldName) {
        this.tag = tag;
        this.desc = desc;
        this.fieldName = fieldName;
    }

    public static long tag(int index) {
        return (long) Math.pow(2, index);
    }
}
